package io.renren.modules.paper.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.modules.paper.entity.Paper;
import io.renren.modules.paper.entity.PaperData;
import io.renren.modules.paper.entity.PaperExample;
import io.renren.modules.paper.entity.PaperTitle;

import java.util.List;
import java.util.Map;

/**
 * @author Yang
 * @Date 2019/9/9 15:59
 */
public interface PaperService extends IService<Paper>{


    long countByExample(PaperExample example);

    int deleteByExample(PaperExample example);

    List<Paper> selectByExample(PaperExample example);

    int updateByExampleSelective(Paper record, PaperExample example);

    int updateByExample(Paper record, PaperExample example);

    int deletePaper(Integer paper_id);

    List<Map<String, Object>> searchPapersList(String paperName, Integer courseId, Integer paperType);

    int fixedInsertPaperInfo(PaperData temp);

    Map<String, Object> getPaperQueDetailByCId(Integer cid);

    int randomInsertPaperInfo(PaperTitle temp);

}
